package com.wise.summer.v1.portal.content.newrecommendproducts;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Tolerate;

import java.util.List;

@Getter
@Setter
@Publish
@SkipUserAuth
@ApiInfo("新品推荐产品")
public class ListNewRecommendProducts extends BasicSummer<List<ListNewRecommendProducts.Result>> {

    @Getter
    @Setter
    @Builder
    public static class Result {
        @Tolerate
        public Result() {

        }

        @ApiInfo("产品ID")
        @Column("id")
        private String id;

        @ApiInfo("产品名")
        @Column("name")
        private String name;

        @ApiInfo("产品图片url")
        @Column("url")
        private String url;

        @ApiInfo("微页面地址")
        @Column("page_id")
        private String pageId;

        @ApiInfo("产品类别ID")
        @Column("categoryId")
        private String categoryId;

        @ApiInfo("产品标题")
        @Column("title")
        private String title;

        @ApiInfo("产品简介")
        @Column("intro")
        private String intro;

        @ApiInfo("路由ID")
        @Column("route_id")
        private String routeId;

        @ApiInfo("推荐产品")
        @Column("recommend")
        private Boolean recommend;

        /**
         * 新品推荐
         */
        @ApiInfo("新手推荐")
        @Column("new_recommend")
        private boolean newRecommend;
    }

}
